package com.study.designmodes.request;

import com.study.designmodes.service.component.DataMasking;
import com.study.designmodes.service.component.DataMaskingFunc;
import lombok.Data;

import java.util.List;

/**
 * 用户请求
 *
 * @author yangyanbin
 * @date 2023/02/03
 * @since 20230203
 */
@Data
public class User {
    /**
     * 主键ID
     */
    private Long id;

    /**
     * 姓名
     */
    @DataMasking(maskFunc = DataMaskingFunc.NO_MASK)
    private String name;

    /**
     * 年龄
     */
    private Integer age;

    /**
     * 邮箱
     */
    @DataMasking(maskFunc = DataMaskingFunc.ALL_MASK)
    private String email;

    private List<User> userList;

}
